package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.utils.StringUtils;
import com.ruoyi.system.domain.SysUserScok;
import com.ruoyi.system.service.SysUserScokService;
import com.ruoyi.system.mapper.SysUserScokMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 86198
* @description 针对表【sys_user_scok】的数据库操作Service实现
* @createDate 2024-06-21 15:48:39
*/
@Service
public class SysUserScokServiceImpl implements SysUserScokService{
    @Autowired
    private SysUserScokMapper userScokMapper;

    @Override
    public List<SysUserScok> selectmystockList(SysUserScok userScok,Long userid) {
         return userScokMapper.selectmystockList(userScok,userid);
    }

    @Override
    public SysUserScok selectById(Long userid, String scokId) {
       SysUserScok sysUserScok= userScokMapper.getById(userid,scokId);
        return sysUserScok;
    }

    @Override
    public boolean updateById(SysUserScok myScok) {
        return userScokMapper.insertMySock(myScok);
    }

    @Override
    public boolean updateByScok(SysUserScok myScok) {
        return userScokMapper.updateByScok(myScok);
    }

    @Override
    public boolean insertMySock(SysUserScok sysUserScok1) {
        return userScokMapper.insertMySock(sysUserScok1);

    }

    @Override
    public SysUserScok getCodeNum(String stockId) {
        return userScokMapper.getCodeNum(stockId);
    }
}




